import java.util.List;
import java.util.Observable;
import java.awt.geom.*;
import java.awt.*;

public class Dart extends Observable
{
	private int x;
	private int y;
	int direction;
	int damage;
	private float speed = 250f;
	private Bloon target;
	private Monkey parent;
	
	public Dart(int xz, int yz, int dir){

		super.Place(Monkey);
		damage= 1; 

	}
    public Dart(Bloon target, Monkey parent) 
    {
            this.target = target;
            this.parent = parent;
            this.x = parent.getX();
            this.y = parent.getY();
            updateDirection();
            
	public int getX() 
	{
        return super.Place(x);
	}
	
	public int getY() 
	{
	        return y;
	}
	
	/*public Vector2d getDirection() {
	        updateDirection();
	        return direction;
	}
	*/
	private void updateDirection() 
	{
	        super.Place();
	}
	
	public void setPosition(int x, int y) 
	{ 
	        this.x = x;
	        this.y = y;
	        setChanged();
	        notifyObservers();
	}
	
	public float getSpeed() 
	{
	        return speed;
	}
	
	public void setSpeed(float speed) 
	{
	        this.speed = speed;
	}
	
	public Bloon getTarget() 
	{
	        return target;
	}
	
	public void setTarget(Bloon target) 
	{
	        this.target = target;
	}
	
	public Monkey getParent() 
	{
	        return parent;
	}
	
	public void setParent(Monkey parent) 
	{
	        this.parent = parent;
	}

}
